<?php /*a:1:{s:65:"/www/wwwroot/qt.feifeiyu.club/app/admin/view/manage/user_edit.vue";i:1690536346;}*/ ?>
<div class="el-dialog">
    <header class="el-dialog__header">
        <span  class="el-dialog__title">修改管理员</span>
        <button  data-bs-dismiss="modal" aria-label="Close" class="el-dialog__headerbtn" type="button">
            <i class="el-icon el-dialog__close">
                <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
                    <path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path>
                </svg>
            </i>
        </button>
    </header>
    <!--顶部-->
     <form method="post" onsubmit="return post_add(this,'<?php echo url('edit'); ?>')">
    <div class="el-dialog__body">
        <!--内容-->
       <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">用户名</label>
            <div class="col-sm-10">
              <input type="text" name="name" value="<?php echo htmlentities($find['name']); ?>" class="form-control" placeholder="输入用户名">
            </div>
          </div>   
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">角色</label>
            <div class="col-sm-10">
              <select class="form-select" name="roleid" aria-label="请选择角色">
                  <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                  <option value="<?php echo htmlentities($vo['roleid']); ?>" <?php if($find['roleid'] == $vo['roleid']): ?>selected<?php endif; ?>><?php echo htmlentities($vo['rolename']); ?></option>
                  <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">昵称</label>
            <div class="col-sm-10">
              <input type="text" name="nickname" value="<?php echo htmlentities($find['nickname']); ?>" class="form-control" placeholder="请输入用户昵称">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">密码</label>
            <div class="col-sm-10">
              <input type="password" name="password" class="form-control" placeholder="不修改请为空">
            </div>
          </div> 
          
          <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">邮箱</label>
            <div class="col-sm-10">
              <input type="email" name="email"  value="<?php echo htmlentities($find['email']); ?>" class="form-control" placeholder="请输入用户邮箱">
            </div>
          </div> 
          
          <input type="hidden" name="adminid" value="<?php echo htmlentities($find['adminid']); ?>">
          <input type="hidden" name="__token__" value="<?php echo token(); ?>" />
         <!--内容-->
    </div>
    <!--底部-->
    <footer class="el-dialog__footer">
        <span class="dialog-footer">
            <button  type="button" class="el-button el-button--danger" data-bs-dismiss="modal" aria-label="Close">
                <span class="">取消</span></button>
            <button class="el-button el-button--primary" aria-disabled="false" type="submit">
                <span class="">确认</span></button>
        </span>
    </footer>
    </form>
</div>